package com.springcloud.configclient.payment.service.impl;

import com.springcloud.configclient.commons.entities.Payment;
import com.springcloud.configclient.payment.dao.PaymentDao;
import com.springcloud.configclient.payment.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao dao;

    public  int add(Payment payment){
        return dao.add(payment);
    }

    public Payment getPayMent(long id){
        return dao.getPayMent(id);
    }

}